package com.gui.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author GodLamp
 * @date 2022/10/22 13:36
 */
@FeignClient(name = "service-cmn")
@RequestMapping(path = "/admin/cmn/dict")
public interface DictFeignClient {
    /**
     * 根据dictCode与value查询
     */
    @GetMapping(path = "getName/{dictCode}/{value}")
    String getName(@PathVariable(name = "dictCode") String dictCode,
                   @PathVariable(name = "value") String value);

    /**
     * 根据value查询
     */
    @GetMapping(path = "getName/{value}")
    String getName(@PathVariable(name = "value") String value);
}
